--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -2314,6 +2314,7 @@
 
 if(BUILD_tfshark)
 	set(tfshark_LIBS
+		m
 		ui
 		wiretap
 		epan
